package com.woniuxy.stall.feign;

import com.woniuxy.core.model.Result;
import com.woniuxy.user.dao.UserInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "user-server")
@ComponentScan
public interface UserClient {
    @GetMapping("/user/userInfo/loadAllUserinfobyId")
    Result<UserInfo> findUserById(@RequestParam("userInfoId") Integer userId);
}
